#!/usr/bin/env bash

while true
do
	$@
	if [ $? -eq 0 ]
	then
		break
	fi

	sleep 1
done
